use controller to replace logic .