added posts controller and view