#102 update working dir when

- tab is hidden
- tabs are updated