changed app controller for devise redirect