posts controller and views