correctly retrieves text from edittext dialog