add registrations controller with new code