Added ViewState and incorporated it into example