Adding buttons to switch between local and global scopes for watching variables