Made external methods to set gui