refactored views in posts and refactored

Fixes #28