core: start to implement navigation history