i am an   idiot   an earlier version i had the if statement structured differently and then i refactored it without testing  that should be  if  controller not  if controller that s why it does not work  sethandled works fine so i will switch to that 