implemented ajax to create comments