Trying to get course dialog to work