add router control using html5 history api