Moved a line to fix te postition of the dialogFrame/