impliemented Advance Search functionality