complete posts controller and views