Added spinner in form buttons when clicked and waits for the server response