edit generator to ajax