updated save modal, all modals on machine page using the modal directive