Add select course onclick function