add deactallbutton function