removed submitPost from posts controller