Attempting to fix code to work with the Sencha button