Only count visible blocks in block count
Remove all static activeWorkspace references, reference parent blockspace instead