- add error triggers and view hooks