search and sort added