Added a couple of error states for Link Preview loading. Standardised the UI creation code style. Removed some debug and redundant code.