Fixed issue with html rendering. Added promise handling after call to REST endpoint