made some improvements to del_button_mode"