remove any previous workspace on loading the viewer

this fixes #997 in a stupid and unsatisfying way