[PD] to gui or to nogui