extract checkbox into generalized div