edited post controller for CE