Fix click on button and move to the top using preventDefault