Changed custom event creation to support Samsung Android. Removed swipes and will rewrite later