Add safari detection, and improve Iphone Fix for flashcards