added touch support and changed api
added touch support and changed api