Fixed order of operations issue populating GUI.