add finctionality to findthemostpopularcommand and view and controller