Added preventDefault

Added preventDefault after noticing a page refresh on android