Refactored viewManagerSpec