set url from state