Removed some logs and a preventDefault