change the tab use the drop down navbar and do some code clean