Added begin_editing() to focus on the text field