textbox draft functionality