edited handlers. made next session before redirect