Added a reload functionality that runs when the Reload button is clicked in the navigation bar.