add some denpendencies injection when state change and add layout
template's navigation