CSS fixes to stop flashing background