adds function toggle_markers_mc_visibility for improved readability