Do not try to substitute of sub_dir is None
removed extra CR
New layout for sample changer widget
Fixed typo
Small layout update
Only update parameters when a relevant item is selected.