added outline to button using lifecycle callbacks