unsaved changes now detected
correct tabs are now selected on load