make buttons safari compatible