autoscroll and search on click