Refactoring of LeagueTblCtrl and leaguetbl.html