# Add sidebar tab on app start not working

**URL:** <https://discourse.nodered.org/t/add-sidebar-tab-on-app-start-not-working/64726>\
**Category:** General\
**Created:** [5 July 2022 15:00 UTC](https://discourse.nodered.org/t/add-sidebar-tab-on-app-start-not-working/64726 "2022-07-05T15:00:26Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![dannyhuly](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dannyhuly/32/71604_2.png) [@dannyhuly](https://discourse.nodered.org/u/dannyhuly)\
**Post date:** [6 July 2022 08:26 UTC](https://discourse.nodered.org/t/add-sidebar-tab-on-app-start-not-working/64726/4 "2022-07-06T08:26:26Z")

</div>

I was able to resolve this by adding new event based on the `'workspace:change` event.

I added this js file to the `editorTheme.page.scripts` array.

```auto
// editor-loaded-event.js
RED.events.on('workspace:change', () => {
    RED.events.off('workspace:change', () => {});
    RED.events.emit('editor:loaded');
});

```

The `editor:loaded` event will trigger only once after the app is ready.

Usage:

```auto
RED.events.on('editor:loaded', () => {
    RED.notify('hello world');
});

RED.events.on('editor:loaded', () => {
     RED.sidebar.addTab(...);
});

```

---

_[View the full topic](https://discourse.nodered.org/t/add-sidebar-tab-on-app-start-not-working/64726)._
