starting history after main.js has loaded the apps to ensure routing
paths are defined