move libraryselectdialog to dialogs file