supports ajax requests for post creation