added spinner loading and success message for status change