Fixed Gui Constructor to accept variables