now showing error pages e.g. 404s and emailing when errors occur