removed post function from viewcontroller