added view and controller for adding a post