move navigate to a instance method