Created new and edit actions for the posts controller