add cacap-error div to widget prototypes, fixes #38