refactor routing for static assets