added styled dialog for deleting pupil