Refactoring some view managers