Took care of a minor bug, now it properly links to the selected item to edit and not the always the first item.