creating variables for buttons before creating if statements