re-added statusChanged event handler and added more comments