frontend code for cloudstudio