adding create and update actions to posts controller