updated Post controller