added truncation of titles that are too long with tooltips added if needed