wire up modal-dialog directive