added mechanism for continue request when app back to foreground