Move hook creation to controller
Fix layout for repos