Moved finding the scope name into view.go where it belongs