Action ajax for generators