fix bugs with SortedSet + hide unavailable links + improve search