respond to json or html on posts create