do this:
else if(href_list["tp"]) 

it's to avoid the huge trees of tabs