Making things work better in ios6 and reasonably in ios7