some refactoring views
show trends on fun page
use DEF_TYPES in method search_fun_ids