Added a state key if not already existing
Merge pull request #78 from praekelt/feature/issue-62-fix-admin

Fixed admin preview