fixed issue where create page was shown before rendering, messaing up the styling