improvement: return to previous active tab after close settings