added code to GlobalActions.smali