opening, closing and focusing files in tab