Issue#423

Improved layout of edit window in teaching materials view
closes #423