added search function and html template