added switch, update table css, update tab css