Add loading dialogs and error messages. Add region sections for constant and variables