added render to GUI

includes animation!
TODO: fix function box expansion