created new and edit posts controllers and views