Restart the app when calculation method changes