got flow working with ajax callback a.k.a yerinle's fix