reftactor, moved globals from window to App