Fixed configuration window code. I think I got it now.