updated basic example

updated basic example to include auto-hiding property