Using api retrofit instead of url connections directly