enabled history and routing, need to handle the actions