moved  search inside view