# Wrong tab active

**URL:** <https://discourse.libretime.org/t/wrong-tab-active/321>\
**Category:** Site Feedback\
**Created:** [July 24, 2019, 3:39pm UTC](https://discourse.libretime.org/t/wrong-tab-active/321 "2019-07-24T15:39:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![surlyshirley](https://avatars.discourse-cdn.com/v4/letter/s/91b2a8/32.png) [@surlyshirley](https://discourse.libretime.org/u/surlyshirley)\
**Post date:** [July 24, 2019, 3:39pm UTC](https://discourse.libretime.org/t/wrong-tab-active/321/1 "2019-07-24T15:39:23Z")

</div>

This is a minor inconvenience, but it’s been happening for a while so thought I’d mention it. I’m on the Calendar and I click on a show and select Schedule Tracks. The window that opens shows tabs for Tracks and Playlists. The Playlist tab is active, but the tab contents is actually Tracks (see screenshot).

 ![example](https://canada1.discourse-cdn.com/flex036/uploads/libretime/original/1X/41cf261682c37887565773dbb3faeb4367157aaa.png)

This doesn’t happen all the time, only when the Playlist tab was the last one selected that most recent time I left the window. Any chance of fixing that small but bothersome bug?

---

<div class="post-metadata">

**Author:** ![hairmare](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.libretime.org/hairmare/32/38_2.png) [@hairmare](https://discourse.libretime.org/u/hairmare)\
**Post date:** [July 27, 2019, 7:56am UTC](https://discourse.libretime.org/t/wrong-tab-active/321/2 "2019-07-27T07:56:34Z")

</div>

I’ve seen the issue you describe happen as well. The tab selection code is a quagmire of hacky javascript code. I looked into cleaning it up a bit a while ago but never got to the bottom of all of it.

I would love to get this fixed, given it’s complexity and that the error is only cosmetic/inconvenient it has a rather low priority. My guess is that refactoring most of the code on the selection screen could be the long term solution to getting rid of this bug.
