added post controllers and implemented post view