Added display none to css to stop flicker