tackling the view logic of team page