made final dialog dynamic