implement edit course dialog