# Create a page button on detail layout

{% hint style="info" %}
You can control the **Edit and Delete** button on a detail layout page if users have [permissions](https://docs.stackerhq.com/stacker-astra/ai-and-automations/action-buttons/broken-reference) to Edit or Delete records from **Page Buttons.**
{% endhint %}

### Create action buttons in detail layout <a href="#create-action-buttons-in-detail-layout-0-1" id="create-action-buttons-in-detail-layout-0-1"></a>

1. Go to your detail layout
2. Click <img src="https://3670244749-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6QaGf7ZvNU2Re8mlQTaJ%2Fuploads%2FnwPUNjZ6bEwMwsAacHwR%2FCleanShot%202024-04-02%20at%2009.08.29%402x.png?alt=media&#x26;token=43a6b412-6838-4c61-9337-56245d54b81d" alt="" data-size="line">**Edit Layout**
3. Click **Controls**
4. Create an action button or toggle on existing buttons
5. [Setup](https://docs.stackerhq.com/stacker-astra/ai-and-automations/action-buttons/edit-an-action-button) your butto

<figure><img src="https://3670244749-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6QaGf7ZvNU2Re8mlQTaJ%2Fuploads%2FO00lxFWyB4lr82aDIUC1%2FCleanShot%202025-06-19%20at%2014.32.42%402x.png?alt=media&#x26;token=af929bed-a622-469e-9c8a-cb639eaa5f3d" alt=""><figcaption></figcaption></figure>
