# Navigation: Home and Page Back

Obviously purpose those two button is very easy to guess. However, how does it look from the technical side?

<figure><img src="https://3670432737-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwJuUkk9Y24vVhd9jDCn1%2Fuploads%2FbcNIpq5GdsnuGwuRBkbJ%2F1.PNG?alt=media&#x26;token=633a9625-b0e7-4614-824b-fe6bc7849c45" alt=""><figcaption></figcaption></figure>

**Home**

Function:

```python
def navigate_to(self, new_screen_func):
    self.navigation_stack.append(new_screen_func)
    new_screen_func()
```

Definition:

```python
self.home_button = customtkinter.CTkButton(
    self.bottom_frame,
    text="Home",
    command=lambda: self.navigate_to(self.show_home_screen)
)
```

\
**Page Back**

Function:

```python
def go_back(self):
    if len(self.navigation_stack) > 1:
        self.navigation_stack.pop()
        previous_screen_func = self.navigation_stack[-1]
        previous_screen_func()
    else:
        self.show_message("No previous screen to go back to.", "Navigation")
```

Definition:

```python
self.back_button = customtkinter.CTkButton(
    self.bottom_frame,
    text="Page Back",
    command=self.go_back
)
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://low-caps-hub.gitbook.io/lowcapshubterminal/initial-section/navigation-home-and-page-back.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
