clean-ups and restructuring on Ext JS desktop