Added loading indicator when transitioning from one view to another