Update to extjs 4.2.1 and a lot of refactoring