Edit in function gui now works (there's still some issues with invalidating)