Added controller for merging subjects