Added validation checking for the variables
Added selection event control to ledmap