# Create and edit views

## Overview

You can create and save views in StackState to bookmark a part of your topology that's of particular interest to your team. By default, saved views will be visible to all users, these can be [secured by a StackState administrator](https://archivedocs.stackstate.com/5.1/use/stackstate-ui/about_views#secure-views-with-rbac) if required.

Not all views are manually created. Many [StackPacks](https://archivedocs.stackstate.com/5.1/stackpacks/about-stackpacks) generate views after installation. It's recommended to use these views only as starting points for creating your own views.

## Create a view

To create a new view navigate to **Explore Mode** via the hamburger menu or use another view as a starting point. Whenever you change any of the [View filters](https://archivedocs.stackstate.com/5.1/use/stackstate-ui/filters), a **Save View** button will appear at the top of the screen. Click this button to save your current selection to a view. To create a new view from the current view use the dropdown menu next to the button and select **Save View As**.

In the **Save view as** dialog, the following options can be set:

| Field Name                | Description                                                                                                                                                                                                                                                                            |
| ------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| View name                 | The name of the view.                                                                                                                                                                                                                                                                  |
| View health state enabled | Whether the view has a health state. If this is disabled, the health state, depicted by the colored circle next to the view name, will always be gray. When disabled, the StackState backend won't need to spend resources calculating a view health state each time the view changes. |
| Configuration function    | When view health state is enabled, you can choose a function that's used to calculate the view health state whenever there are changes in the view. The default choice is **minimum health states**.                                                                                   |
| Arguments                 | The required arguments will vary depending on the chosen configuration function.                                                                                                                                                                                                       |

{% hint style="success" %}

* You can build your own [view state configuration functions](https://archivedocs.stackstate.com/5.1/develop/developer-guides/custom-functions/view-health-state-configuration-functions#view-health-state-configuration-function-minimum-health-states) to customize how the view health state is calculated.
* Views can be given an optional identifier. [Identifiers](https://archivedocs.stackstate.com/5.1/configure/topology/identifiers) can be used to uniquely reference the view from exported configuration, such as the exported configuration in a StackPack.
* Views can be [secured by a StackState administrator](https://archivedocs.stackstate.com/5.1/use/stackstate-ui/about_views#secure-views-with-rbac).
  {% endhint %}

## Delete or edit a view

{% hint style="info" %}

* It isn't recommended to delete or edit views created by StackPacks. When doing so, you will get a warning that the view is locked. If you proceed anyway the issue needs to be resolved when upgrading the StackPack that created the view.
* Note that changes made to a view will be applied for all users.
  {% endhint %}

A saved view can be edited or deleted from either the **all views** screen, or the right panel **View summary** tab.

1. All views screen:
   * Click **Views** in the main menu to open the **all views** screen.
   * Hover over the view you would like to edit or delete.
   * Click the **Edit view** or **Delete view** button on the right.
2. Right panel **View summary** tab:
   * Open the view.
   * Open the triple dots menu (to the right of the view name in the right panel **View summary** tab).
   * Click **Edit** or **Delete**.
