Preload appsheet, fix few edge-case state bugs