implement router and history using backbone