buttons and input check primary target