more work on gui