commit with loading spinner