added gshemas for last-workspace toggle
add code for last-workspace toggle
selectively merge parts of pr #7