update to make save popup functional