portal search function added, minor bug fix

portal search function added, minor bug fix