added backend for popular and ranking