performance improvements in history search and paste mode navig