Adding notFound handler and server setting