fixed team changing bug, did error checking

team changes now done based on selected table column