start handling browser history