corrected middleman gui problems