Only append footer if buttons exist.