rework onClick_dimensionElementCheckbox

more slim/clear, use functions to hide/show buttons
and covers more cases