handling 404 error now working