updated post to follow xhr instead of json