Apply cca coding standars

Apply coding standards to the filter checkbox attribute. It contains some refactoring to fullfill cyclomatic complexity limits.