initial version of gui - NOT WORKING