added control to error 404