Added logic for mail searching and added model and webservice function
for close form