login view observe main foreground