Changing checkbox state setter using 'prop'

as recommended by bigotilda <https://github.com/bigotilda>