save controller instance to get its function