improve code in view config windows

Authored by mvourlakos on Dec 1 2018, 11:08 PM.