lots of improvement including better tab and openFile management