Fix duplicate save and cancel buttons in Studio

STUD-1531

Also add support for refreshing the modal on custom save