(fix) fixed error that languagecontroller wasn't a function
made custom directive for search template