event handler for change status