Adapts data to UI