rename error method
change some stuff related to displaying pages