making function on application controller to search recomendations