Abstracted loadData in the controller
Merged again