modal analysis in GUI