1.add Active Model Serializers
2.refactor