Update button working for text