dded buttonfunction