tweaked the gui code a bit... not sure what's going on..