add modelAction directive