added listening capabilities such that now the current search type is constantly
updated