Added search to controller