Fixing click events to handle correctly on ipads