added sorting and most of hovering is fixed