update modified state in the tab title
update modified state on save
focus loaded file instead of opening it again