adding fragments to elements