Added functionality to edit party