before converting labels to buttons