implemented tabs and updated main