Add search and fix bug in the index page