views: improve search function and a feature on model.