Added click handler for the do single generation button