added closing all tabs mechanism