added public viewdef search