trash functionallity added as pre('remove') hook