Added coursenumbers to all courses

added a function to create coursenumbers
fixed simple warnings
small bugfix in boxcontroller
bugfix in canvas so buttons don't dissapear