search now respects selected types
changed type handling from title to id