change attachment preremove