handle browsers without history API support