Text boxes not updated with condition values