If you pass a target action for modal clicks, the function should return true to close the modal