Replaced method generator in GUI