fixing layout for ios 6 and 7