Adds a new template per row that renders table for each row
increase and decrease priority
updates changes on priority automatically
destroy: removes resources
adds comparator to keep the collection sorted
changes order of priority to make sense with the directions of the arrows