Added functionality to get data from searchModel