Store urls in preferences