updating main class and adding private views