fix GUI limit and bug when no result file provide for the viewer