move static files and template out