putting code into the join screen