improved file structure, adding templates and routers for posts