ui edit and javascript to show additional fields if class has multiple sessions