remove unnecessary code
refactoring into backend controllers