fixing iOS button bug