Add button-clicking functionality