added posts controller and views