adding template and binding for post submission
changing modals to native bootstrap components due to poor support and bugs of current angular-bootstrap modal directives and state options for widget type elements