Add return value for modal yes action

The return value determines if the the modal can be closed on execution
of modal yes function