add disabled links when prev or next is disabled