Various fixes to issues with starting up tabs for the first time, and restarting multiple tabs