refactor getPopularApps
spacing