fixed Xcode warning with a cast
made GUI use the easy generation