view dialog for the trainee index page