Refactor activity feed and profile page links