html, css and some functionality for territory manager