Pass initial state as an alist and generate GUI elements depending on state parameters.