near working version of gui