step 7: router & history