# How to refresh original controller page when using a custom controller?

**URL:** <https://discuss.hotwired.dev/t/how-to-refresh-original-controller-page-when-using-a-custom-controller/6313>\
**Category:** General\
**Created:** [May 3, 2025, 3:40pm UTC](https://discuss.hotwired.dev/t/how-to-refresh-original-controller-page-when-using-a-custom-controller/6313 "2025-05-03T15:40:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![garyharan](https://yyz1.discourse-cdn.com/flex027/user_avatar/discuss.hotwired.dev/garyharan/32/4003_2.png) [@garyharan](https://discuss.hotwired.dev/u/garyharan)\
**Post date:** [May 3, 2025, 3:40pm UTC](https://discuss.hotwired.dev/t/how-to-refresh-original-controller-page-when-using-a-custom-controller/6313/1 "2025-05-03T15:40:41Z")

</div>

I have the following chatViewController being called this way:

```auto

    func handle(proposal: VisitProposal, from navigator: Navigator) -> ProposalResult {
        switch proposal.viewController {
        case "chat":
            let chatViewController = ChatViewController(url: proposal.url)
            return .acceptCustom(chatViewController)
        default:
            return .accept
        }
    }

```

It’s used solely for the purpose of hiding the tabBarController’s bar at the bottom:

```auto
import UIKit
import HotwireNative

@MainActor
class ChatViewController: VisitableViewController {
    
    override init(url: URL) {
        super.init(url: url)
        hidesBottomBarWhenPushed = true
    }

...

```

I would like that when we hit the back button on the ChatViewController that it refreshes the controller it pops back to. What approach would you suggest?
