fix bug: not updating edit text code