adding posts controller