working on persistent gui