added ViewFactory and global View