moving the css to the bottom causing the page to render weird the first time