added edit flag commands, adding and deleting flags push events