Changed the deprecated selector#live() method with selector#on()