added loading spinner to pages