slight fix to use of history api