solving angular modal issue/ ui-bootstrap-tpls changes part II