Add redo and search functions