added write VC and fixed textfield