convert to controller-as and this