mend

Addes search method to search controller