Fix delete overlay close action
Don't display pagination if is useless