Using update handlers with conditionals