Added enable and disable methods to application javascript
Fixed calculation bug for pie charts