Add hide buttons to modals