update model
add the operate function
add trigger view