added extra check to disable buttons in preview when using initialstate option from PR#64
Merge pull request #68 from acrobat/patch-1

Fix for disabled buttons and initialstate in preview mode