got gui working sort of