on win function added, wired up to on change and tweaked styles