adding loading state to controls. added a spinner to buttons in loading state.