improved closing tabs