refactor prgress View/edit opportunity