connect buttons and actions