Changed to insert template on elements parent.