Add action listeners to buttons