Remove button on Confluence macro plugin module

Hello all,

I am developing a Confluence plugin that uses macro as a module and by default the macro has an edit and remove button. How can I access to this buttons and change their code actions?

image

Thank you