adding basic checkbox functionality