Feature discard session changes

Checks if a user has modified the current session being edited or created's name or description prior to closing. If there are changes, it asks the user to verify that they want to close the tab.