Helped the GUI interact with background codes.The GUI now will be locked
when supvisor is running and be freed when it is not. Next step is to
implement the code that can let MainWindows give supvisor infomations
and find a way to find the device itself.