Made click function to move nav bar