setup states for owncloud