don't show options if form is in a modal

The options showed up in the PageTable modals which was quite confusing for my editors.