Change modal buttons to loading state when clicked