add edit button and event setting