# How to set gallery view as default view with video SDK UI tooklit

**URL:** <https://devforum.zoom.us/t/how-to-set-gallery-view-as-default-view-with-video-sdk-ui-tooklit/116648>\
**Category:** UI ToolKit\
**Created:** [August 30, 2024, 4:50am UTC](https://devforum.zoom.us/t/how-to-set-gallery-view-as-default-view-with-video-sdk-ui-tooklit/116648 "2024-08-30T04:50:40Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![dhanashree.bodas](https://avatars.discourse-cdn.com/v4/letter/d/65b543/32.png) [@dhanashree.bodas](https://devforum.zoom.us/u/dhanashree.bodas)\
**Post date:** [August 30, 2024, 4:50am UTC](https://devforum.zoom.us/t/how-to-set-gallery-view-as-default-view-with-video-sdk-ui-tooklit/116648/1 "2024-08-30T04:50:40Z")

</div>

I am using UI toolkit in react application and have enabled the sharedArrayBuffer. I can see now option to switch to ‘Gallery View’

My question is, is there any way where I can set gallery view as the default view?

---

<div class="post-metadata">

**Author:** ![ekaansh.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/ekaansh.zoom/32/55004_2.png) [@ekaansh.zoom](https://devforum.zoom.us/u/ekaansh.zoom)\
**Post date:** [August 30, 2024, 9:22am UTC](https://devforum.zoom.us/t/how-to-set-gallery-view-as-default-view-with-video-sdk-ui-tooklit/116648/2 "2024-08-30T09:22:04Z")

</div>

Hey @dhanashree.bodas we’re working on adding the ability to select default view for the UI Toolkit in a future release.

However in the mean time there’s a hacky way to achieve what you’d like by using this snippet:

```auto
uitoolkit.onSessionJoined(() => {
      document.querySelector('[aria-label="Change view"]')?.click();
      [...document.querySelectorAll("span")].filter((span) => span.textContent?.includes("Gallery"))[0].click();
    });

```

It’ll access the layout button and click on the grid menu item automatically when a session is joined.

---

<div class="post-metadata">

**Author:** ![dhanashree.bodas](https://avatars.discourse-cdn.com/v4/letter/d/65b543/32.png) [@dhanashree.bodas](https://devforum.zoom.us/u/dhanashree.bodas)\
**Post date:** [August 30, 2024, 9:37am UTC](https://devforum.zoom.us/t/how-to-set-gallery-view-as-default-view-with-video-sdk-ui-tooklit/116648/3 "2024-08-30T09:37:26Z")

</div>

Thanks you for the prompt response @ekaansh.zoom. I will try this out

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [February 10, 2025, 7:19pm UTC](https://devforum.zoom.us/t/how-to-set-gallery-view-as-default-view-with-video-sdk-ui-tooklit/116648/4 "2025-02-10T19:19:36Z")

</div>

Hey @dhanashree.bodas ,

Gallery view is now the default and with our next update you will have a function to control the default views.

Best,  
Tommy
