added rest query and modal confirm with  from angular-ui-bootstrap