fix getSiteName function in View