move logic from feed view controller into separate classes