Macro Edit Menu

Hello,

I am having trouble overriding my custom macro’s edit menu. I would like to remove the preview feature as well as the old css to make my own overlay for my users. The current edit menu’s for macros are all jumbled up on the left hand panel and having to scroll just to see anything past 4 options is silly. Is there a way to do this? Does anyone have a resource? I have seen it done with other macros, but not a lot of resources available.

I am developing for confluence datacenter.