Edit student dialog loads classes from api