visibility functionality in buttons