tabs functionality added, other functions completed