adding visiblity to button