added styled dialog for pupil exists
fixed bug with edit class dialog

bug showed wrong dialogs when class existed