implemented searchactivity and fixed tab issue