Adds functionalities to save changes and discard changes button on editSessionPanel