make tags work properly for add / edit