URL change on swap and close