added changes for ios7