Update history related functions and view