loading spinner working for pages