added error handlig pages