Added some error pages  and started work on a custom templat,e