Added deleting programs and cancel button/back button functionality to
edit excersise dialogs