add workspacehistoryhook