added findpal function
removed msg variable
added form for pal search