added history on navigation