added focus handling to input example