Modified render_list method to highlight row selected by rank