added update apk logic