Try using something like ".timer -m 20 1 loadup.levels" instead of just plain "loadup.levels". (not neccersary in the init)
This will ensure that the entire script has finished processing and exited the events/aliases before it attempts to reload/refresh the dialog.