let error views work with and without layouts