Edit function to scaffolding
Split controller common method to a father class