ui_browsecourses: fixed code to follow guidelines