added delay to visibility to ensure that page gets invisible after the transition