added callbacks on close and install - likely to be used for tracking