Added history back and forward navigation recorded by dom