conditional to decide what content to post back