Programized the gui