Implement the clear when edit button