comment code and reorder functions
implement open previous tabs, working on url links
Merge branch 'local'