add tool icons, add cleaner separation of tool and toolbox
fix some event delegation issues