improvements to search function and editor