Added another function for setting list box data

Also added a safetynet for invalid setup

issue: #1148