generate buttons and output div
generate buttons and output divs