update read button function