added win resize commands for gui