changes to support ios 7