rearranged how the gui is initialized for the Client; #14 for Client