divide button definition and action