fixing button hiding