Removed view.getCode()
Using HistoriesService