Added ability to trigger close for parent without passing id