added support for ios 7