updated states where API interactions take place