Refactoring extjs ui