custom document (styled document implementation - verifying listeners)