checking touchend and gallery tuff