update basic and advance search, fix some security holes, change few thing