fixes #21 checkbox value not saving