update unless code when click setting button and delete before all def