add helper for activate or inactive button management