put width in a separate function

we need width to be different for different pages, while the other
global variables stay the same
removed global variables file for challenge gui