add date and search in template