takes a whole list now, added edit button