data libraries: ui improvements, sorting, bugfix