redirection works from views only