Detect View for popup menu