using viewDidAppear and properties on button outlet to show hide button