Updated default paths
Added close listener to close corresponding tabs when a tab is closed