checkbox tweaks
added visibility check