improve embed and implement dashboard example