added state management in ForecastActivity.java