fix the button issue on ios safari