Implemented editing and deleting posts