Fix workspace switching and hide the main panel before unloading it (unload faster).
Merge pull request #349 from nicolas-f/fix/change_workspace

Fix workspace switching. Tested and approved. Good Game.