refactored views in posts and refactored

Fixes #28 
another extra x