detect button move