Created selectElement method, and use it to put the active = true on the correct element. this is also used in the list to indicate which element is active. If selecting, a element and not copy\delete\create\edit, the user is redirected to the right page;

The list element is now a div, with a.btn-xs buttons.

dataElements is now tied to $scope and not this; This is to be able to reference it in the selectElement method. Without it, this.dataElements in undefined.