changed logic on default url