History page and P&L

got about 80% of the changes done. Will continue tomorrow.