updated post model, controller