replace action with events and refactor of url fragment work