updated posts controller
fix merge conflict
index changes
Merge pull request #38 from indotek68/master

Posts controller update