function startGUI

% allocations
r = groot;
scrsz	= r.ScreenSize;
figSize	= [400 250];
panelColor	= [0.98 0.98 0.98];
figureColor	= [0.9 0.9 0.9];
textColor	= [0.95 0.95 0.95];
textFontSize1  = 9;
textFontSize2  = 10;

% now, let's create GUI...
fig = figure('units', 'pixels', ...
   'Position', [(scrsz(3) - figSize(1))/2, ...
                (scrsz(4) - figSize(2))/2, ...
                figSize(1), figSize(2)], ...
   'Name', 'Example', 'Tag', 'fig_ex', ...
   'Color', figureColor, 'Menu', 'none', ...
   'NumberTitle', 'off');

panel1 = uipanel('Units', 'pixels', ...
   'Position', [90 180 220 60], 'Title', 'Visibility', ...
   'BackgroundColor', panelColor, 'tag', 'panelVisibility');

text1_Xlabel = uicontrol('Units', 'Normalized', ...
   'Position', [0.1 0.4 0.15 0.075], ...
   'Style', 'Text', 'String', 'X-position:', ...
   'BackgroundColor', figureColor, 'Fontsize', textFontSize1);

text2_Xdata = uicontrol('Units', 'Normalized', ...
   'Position', [0.26 0.4 0.175 0.075], ...
   'Style', 'Text', 'String', '', ...
   'BackgroundColor', textColor, 'Fontsize', textFontSize2);

text3_Ylabel = uicontrol('Units', 'Normalized', ...
   'Position', [0.55 0.4 0.15 0.075], ...
   'Style', 'Text', 'String', 'Y-position:', ...
   'BackgroundColor', figureColor, 'Fontsize', textFontSize1);

text4_Ydata = uicontrol('Units', 'Normalized', ...
   'Position', [0.71 0.4 0.175 0.075], ...
   'Style', 'Text', 'String', '', ...
   'BackgroundColor', textColor, 'Fontsize', textFontSize2);

button = uicontrol('Units', 'Normalized', ...
   'Position', [0.3 0.1 0.4 0.125], ...
   'Style', 'Push', 'String', 'End', ...
   'ForegroundColor', [0.8 0.9 0.9], ...
   'BackgroundColor', [0.1 0.5 0.6], ...
   'Fontsize', textFontSize1);

visibleHandle = uicontrol(panel1, 'Units','Normalized',...
   'Position',[0.225 0.25 0.6 0.5], ...
   'Style','check', 'String','Show position',...
   'Tag','choiceOfVisibility', 'BackgroundColor',panelColor,...
   'TooltipString', 'click to show mouse position');