add paint event gui