fixes #7608 use buttons and options only for parameterized classes