adaptation for ios7