basic functionality for errors pages