added selecting regions, zooming and reset, and charts and percentage maths