adds discard changes functionality to revert changes on the edit session panel
solves codePro complaint
fixes bug that session can't be saved after discarding the change of a deck
removes codePro complaints and remove editmode from save session controller