updated for Extjs 5 support