refactor manageTopUrl#goTo to take an object as input