Add showTitle and closeButton options. Also stop the menu from following when the container is no longer in the viewport