search function for data page