Update main window's controls when the user clicks on links