Added the function that purging all tabs except for the active tab. (Issues #39 and #24)