added userView function