An AngularJS dialog service based on $modal of UI Bootstrap