# Moving a perspective containier in the Z order with a button

**URL:** <https://forum.inductiveautomation.com/t/moving-a-perspective-containier-in-the-z-order-with-a-button/69675>\
**Category:** Ignition\
**Tags:** ignition81, perspective\
**Created:** [February 10, 2023, 5:58am UTC](https://forum.inductiveautomation.com/t/moving-a-perspective-containier-in-the-z-order-with-a-button/69675 "2023-02-10T05:58:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ben\_Lindner](https://avatars.discourse-cdn.com/v4/letter/b/ea5d25/32.png) [@Ben\_Lindner](https://forum.inductiveautomation.com/u/Ben_Lindner)\
**Post date:** [February 10, 2023, 5:58am UTC](https://forum.inductiveautomation.com/t/moving-a-perspective-containier-in-the-z-order-with-a-button/69675/1 "2023-02-10T05:58:57Z")

</div>

Hello,

I have for example a coordinate view with 5 smaller containers layered on top of each other. I want each container to be moved to the front of the view when its corresponding button is pressed.

Something like

IF button 1 pressed move container 1 to front of z order  
IF button 2 pressed moved container 2 to front of z order  
etc..

What would be the best way to approach this. An On-click event that runs script with Z order manipulation? If so does anyone have a rough example.

Thanks

---

<div class="post-metadata">

**Author:** ![Ben\_Lindner](https://avatars.discourse-cdn.com/v4/letter/b/ea5d25/32.png) [@Ben\_Lindner](https://forum.inductiveautomation.com/u/Ben_Lindner)\
**Post date:** [February 10, 2023, 6:13am UTC](https://forum.inductiveautomation.com/t/moving-a-perspective-containier-in-the-z-order-with-a-button/69675/2 "2023-02-10T06:13:52Z")

</div>

NEVER MIND i have found out view canvas exists
