added template engine for frontend
adde first post structure
added session for template query