Clicking off container closes it