updated returlUrl handling for delete button