updated ajax with replies