added confirm popup to optimization - josh