edit price refactoring