Adaption for multi-version compability (4.7 - 4.9). Storing the last view added.