added history navigation