fixed category in posts controller
fixed tpl parsing in view