changed background colors to light gray
added error delegate callback method