added readonly state for textfield