rest markov in generate button handler