first pass at hooking up editor to gui