Restructured the ui-code to application.ui-package
Confirmation dialog is shown to user after storing the application.