fixed leagues controller allowing leagues and teams view to work properly