add attachDelete functionality