update main state routing