Adding history push-state for some UI actions.