functioning post controller