Improved the home_path with a session variable.