Added close button.
Tracking whether or not container was already there, so we can destroy it like we were before if the directive creates the container.