removed unnecessary pointer listener
added focused attribute