Only change Modes if current GUI is null

Should fix #256
add import
Merge pull request #257 from Tarig0/patch-1

Only change Modes if current GUI is null