added animation and timeout so the page can have a chance to load