Fixed the pagination on the front-end and added real total mail count ot the search result