Removed page flicker on load