refactor basketdialog to render trainings