added openOptionsMenu and closeOptionsMenu to ShadowActivity