Slight improvement to tr-clicked functionality