created posts controller and basic views