add page not found middleware