Fixed bug so that users can edit or cancel after clicking accessory button