# How to set the customized layout whenever I switch to the developed module?

**URL:** <https://discourse.slicer.org/t/how-to-set-the-customized-layout-whenever-i-switch-to-the-developed-module/20255>\
**Category:** Development\
**Created:** [October 20, 2021, 4:51am UTC](https://discourse.slicer.org/t/how-to-set-the-customized-layout-whenever-i-switch-to-the-developed-module/20255 "2021-10-20T04:51:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![wpgao](https://avatars.discourse-cdn.com/v4/letter/w/8e8cbc/32.png) [@wpgao](https://discourse.slicer.org/u/wpgao)\
**Post date:** [October 20, 2021, 4:51am UTC](https://discourse.slicer.org/t/how-to-set-the-customized-layout-whenever-i-switch-to-the-developed-module/20255/1 "2021-10-20T04:51:59Z")

</div>

Hi Guys,

I had defined a customized layout with a module. When the module was activated, the layout work. However, after I switch to other module and then get back, the customized layout doesn’t work. So how to set the customized layout whenever I switch to this module. I think there should be a function to realize it but I have no idea about that. Any suggestion?  
Thanks

Wenpeng

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [October 20, 2021, 5:01am UTC](https://discourse.slicer.org/t/how-to-set-the-customized-layout-whenever-i-switch-to-the-developed-module/20255/2 "2021-10-20T05:01:06Z")

</div>

If you mean that you have [registered a custom view layout](https://slicer.readthedocs.io/en/latest/developer_guide/script_repository.html#customize-view-layout) then you should register it in the application startup completed signal handler and not re-register it again if you enter the module.
