#442 moved course logic from controller to view, linked contest with owner