simplified post controller by removing json references and files