use controller in view