Added textbox functionality