Added actions to buttons