**Bug description:** Cross button in Dashboards act like a back button before actually closing. **Steps to reproduce:** 1. Navigate to Dashboards. 2. Navigate to death/ marriage tab. 3. Click on Cross (x) button. 4. Observe. **Actual result:** Cross button acts like a back button before finally closing. **Expected result:** When clicked on cross button, Dashboards should close. **Recording:** https://github.com/user-attachments/assets/2992341a-bd6c-4311-86ff-f90e3a1516cc **Tested on:** https://register.v19-beta-prod.opencrvs.dev/