template added, search events implemented
search events improved