Lots of changes. Fetching correct data. displaying table