added default and error pages