Working on back and forward history navigation