fix view, add trigger