Listen to appclose event before <code>AppWindowManager.display(null, null, 'to-cardview');</code>