add handling for sleep
apply design
Merge pull request #20 from yuyaohshimo/feat/front_js

Feat/front js