Made textbox fuctional