Refactory API, change all model and controller