setup main controllers