finalized the current setting function and path generating popup