removed flashing by changing background colour