Fixed bug importing data

Changed the order so ext boards are set before station names are
changed in case board number increases before import.

Also, changed array name from $data (conflict) to $value inside option
loop