html_safe for create_expand_collapse_link whihc was causing escaped HTML to show on add new REST endpoint page.