code clean, refactor routing, 404 template support.