Added InsertIntoDOM function to the view.