Added how page transition logic