changed pause from a frame to a different panel