removed redundant head and body from selectedTag