better handling of data ranges
remove debug print from layer range dialog