use separate function to create each button