refactoring navgiation at start