Change on-line to online and define GUI