using history api to make page back and forward work for articles