added a first version of encode GUI