fixed gui to work with framework