add click events for add and edit buttons