cursor position is saved in tabs