Check for existing core data

fixed fetching data on main tread, some UI fixes