courses#edit cleanup code