making update-level to be a function taking logger