Refactor trending view