Added functionality to "Add Application" modal window for 'Cancel' and the 'Close' control