navigate from function to component
…