Switching and managing workspaces