added flash to ajax