changed to use hammer.js