created gui class, corrected errors in region class