Forbid closing of main tab