Added click event to pie charts, misc fixes