Changing page transition and adding alert