delete old code and work on panel