Fix for disabled buttons and initialstate in preview mode

added extra check to disable buttons in preview when using initialstate option from PR#64