Refactor ViewHistory
Add method to 'ViewHistory' so that the parameters are only written once for each call to 'updateViewarea'