refactor the event handler for restore init status button