added Connor's resize code
hopefully not creating a problem
some minor changes
minor changes