Cleaned up a bit error handling for widget.
Small refactor when app info is obtained.
Clean up logic to build native widget.