First time user fixes

Added additional undefined checking for the pinnedVar. Fixed some loading issues for first time users.