fixed typo in demo, reactored close to hide
refined example