Add events for active and deactive theme