finished reworking post controller