handling page not found correctly