button rendering code extracted into button.html