fixing bug where app routes to wrong address after click yes