alarm handler with headphone option