upgraded to ios 7.1; added bounds and viewport