update deps
use states instead of pages