Change routing to History API, common mail app state