Fix many bugs caused by ExtJS 5 Upgrade