change MarkupAction method to emit