refactoring
add search
change back to go back history