add posts controller and view