generate window view