implement respondToEvent method and change min sdk version to 10