Various fixes

- Classes with no assignments show empty list in second tab
- maxlength attributes on all text inputs
- new task popup clears text area