redirect to last visited page only from root_path