Fixed the cardio screen layout issue and made syncing happen once the app hits the foreground