check if link remote is true and dismiss modal on confirm