update tupi and buttons