add spinner and disable the button when submit a form