Fixed some bugs and add tab component