added cursor position to search box