Fix navbar and page content moving issues on load