attempt to add loading spinner when clicking on the save button