Connection to buttons