altered the way widget codes are read

to allow for other characters