Bug fixes and tab header&footer added