use tags input for editing too