Changed the navigation order function using up/down arrow