Minimization afd with GUI