add errors logging to layout view