added buttons and corresponding listeners