solved problem with selection and undo redo on several tabs, +added adding an item on center of cursor