Refactored league select view and controller code.