path issue in search controller