accepting edits with custom component