Added new Historical Analysis

Bugs:
1. Buttons on HA not working
2. Checkbox of D&I does not work