refactored views in posts and refactored

Fixes #28 
does this pass?