automatically change select/deselect button