added new, show, create actions to posts controller