refactor: controllers, services and constants