throwing alert when attempting to added LM to unsaved session