improved output of index titles and links
added "clear" button for search field