stop and release button function