Updated GUI transition code.