Added collections edit function inline. Could be nicer.