fixing plotting gui