Added update/endupdate to timer refresh