buttons script update