including how to close from within element