fix hidden things displaying while loading

now all starting hidden elements are hidden in the CSS file and
displayed later in the JS file. This should help with things appearing
then disappearing when the page loads