refactor filter state checkbox update code for readability
Merge pull request #33 from zanata/nicer-checkbox-update

Refactor filter state checkbox update code for readability