move setup from gui to app