replicate checkbox functionality in svg