Updates for ios6, ios7 and ios8