Use Ext.getCmp() to lookup rather than relying on global variables.