securing indexSync method, moving to new controller