refactored views in posts and refactored

Fixes #28 
typo here