sleep buttons correctly