Added Checkmark Function for All Attributes

Refactored code a little bit and extended the checkmark functionality to
all attribute buttons.