add proper class to <ul>
truncate long titles in searches