working like a charm with xbee but lagging with hc-05

pylon:
There's absolutely no code that talks to the bluetooth device.

I think OP is trying to use the hardware UART to talk to BT.

For starters, get rid of the Serial1.flush(); call. It is absolutely unnecessary.