updated for ios7 and converted to theos project