fixed tab layout and added js but it doesnt work yet