add static handling, layout some files for frontend