Resolve Issue 5 (Open file overwrites existing tab)