clarified complete button code