Implemented the full create and new functionality for posts.