split up controller loading into 2 methods