Added usage of scope in methods restoreHistory and destroy in model.

Signed-off-by: Jakob Brandsborg Ehmsen <jakobehmsen.github@gmail.com>