Broke each tab into own code to reduce confusion