Adds autohide functionality. Fixes #4.