remove unnecessary code: clear_tab