moved forecast API call to application controller