404 error handling

404 error handling code added